<%--
  Created by IntelliJ IDEA.
  User: fujia
  Date: 2016/6/7
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<!doctype html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-US"> <!--<![endif]-->
<%@include file="common/head.jsp"%>

<body>

<%@include file="common/nav.jsp"%>

<!-- Start of Page Container -->
<div class="page-container">
    <div class="container">
        <div class="row">

            <!-- start of page content -->
            <div class="span8 page-content">

                <article class=" type-page  hentry clearfix">
                    <h1 class="post-title"><a href="#">发表文章</a></h1>

                    <hr>

                    <blockquote>
                        <h4>
                            <span>Hi</span>
                            <s:if test="#session.username != '' && #session.userId != null">
                                <span><b><s:property value="#session.username" /></b></span>
                            </s:if>
                            <span>! 在这里发表你的文章吧。</span>
                        </h4>
                    </blockquote>


                </article>

                <div id="respond">

                    <div class="cancel-comment-reply">
                        <a rel="nofollow" id="cancel-comment-reply-link" href="#" style="display:none;">点击这里取消发表。</a>
                    </div>

                    <form action="/post/article.action" method="post" id="commentform">

                        <div>
                            <label for="block">版区</label>
                            <select class="form-control" name="blockId" id="block">
                                <s:if test="#session.selectBlock != null">
                                    <s:iterator value="#session.selectBlock" status="selectBlock">
                                        <option value="<s:property value="#selectBlock.index + 1" />"><s:property /></option>
                                    </s:iterator>
                                </s:if>
                                <s:else>
                                    <option value="0">暂无选区</option>
                                </s:else>
                            </select>
                        </div>

                        <div>
                            <label for="theme">标题</label>
                            <input class="span4" type="text" name="title" id="theme" size="22">
                        </div>


                        <div>
                            <label for="content">内容</label>
                            <textarea class="span8" name="text" id="content" cols="80" rows="10"></textarea>
                        </div>

                        <input type="hidden" name="userId" value="<s:property value="#session.userId" />">

                        <div>
                            <input class="btn" name="submit" type="submit" id="submit" value="发    表">
                        </div>

                    </form>

                </div>
            </div>
            <!-- end of page content -->

            <%@include file="common/aside.jsp"%>

        </div>
    </div>
</div>
<!-- End of Page Container -->


<%@include file="common/foot.jsp"%>

<a href="#top" id="scroll-top"></a>

<%@include file="common/script.jsp"%>

</body>
</html>


